package com.jhgsys.internal.hazard.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jhgsys.internal.common.entity.QueryRequest;
import com.jhgsys.internal.hazard.dto.HazardExamineRecordDto;
import com.jhgsys.internal.hazard.entity.HazardExamineRecord;

import java.util.List;
import java.util.Map;

/**
 *  Service接口
 *
 * @author admin
 * @date 2024-08-20 15:49:12
 */
public interface IHazardExamineRecordService extends IService<HazardExamineRecord> {
    /**
     * 查询（分页）
     * @author admin
     * @date 2024-08-20 15:49:12
     * @param request QueryRequest
     * @param hazardExamineRecord hazardExamineRecord
     * @return IPage<HazardExamineRecord>
     */
    IPage<HazardExamineRecord> findHazardExamineRecordPage(QueryRequest request, HazardExamineRecord hazardExamineRecord);

    /**
     * 查询（所有）
     * @author admin
     * @date 2024-08-20 15:49:12
     * @param hazardExamineRecord hazardExamineRecord
     * @return List<HazardExamineRecord>
     */
    List<HazardExamineRecord> findHazardExamineRecordList(HazardExamineRecord hazardExamineRecord);

    /**
     * 安全检查录入 以HazardExamine为主表查询（所有）
     * @author admin
     * @date 2024-08-20 15:49:12
     * @param hazardExamineRecordDto hazardExamineRecordDto
     * @return List<HazardExamineRecord>
     */
    Map<String,Object> findHazardExamineRecordListWithExamines(HazardExamineRecordDto hazardExamineRecordDto);

    /**
    * 根据ID查询
    * @author admin
    * @date 2024-08-20 15:49:12
    * @param id
    * @return HazardExamineRecord
    */
    HazardExamineRecordDto findHazardExamineRecordById(String id);

    /**
     * 新增
     * @author admin
     * @date 2024-08-20 15:49:12
     * @param hazardExamineRecord hazardExamineRecord
     */
    void createHazardExamineRecord(HazardExamineRecord hazardExamineRecord);

    /**
     * 修改
     * @author admin
     * @date 2024-08-20 15:49:12
     * @param hazardExamineRecord hazardExamineRecord
     */
    void updateHazardExamineRecord(HazardExamineRecord hazardExamineRecord);

    /**
     * 逻辑删除
     * @author admin
     * @date 2024-08-20 15:49:12
     * @param hazardExamineRecord hazardExamineRecord
     * @param hazardExamineRecordIds hazardExamineRecordIds
     */
    void deleteHazardExamineRecord(HazardExamineRecord hazardExamineRecord,String hazardExamineRecordIds);

    /**
    * 物理删除
    * @author admin
    * @date 2024-08-20 15:49:12
    * @param hazardExamineRecordIds hazardExamineRecordIds
    */
    void physicallyDeleteHazardExamineRecord(String hazardExamineRecordIds);

    /**
     * 根据项目examine_id查询
     * @author admin
     * @param examineIds
     * @return List<HazardExamineRecordDto>
     */
    List<HazardExamineRecordDto> findByExamineIds(List<String> examineIds);
}
